home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
util
/
gnu
/
emacs_src.lha
/
src
/
amiga
/
emacs-18.59
/
unix
/
include
/
signal.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-18
|
2KB
|
60 lines
#ifndef _SIGNAL_H
#define _SIGNAL_H
#define NSIG 32 /* We define lots of signals (though most are never
generated) */
/* Signal number definitions */
/* Those which can be generated other than by kill are described with
<name>, amiga: <cause> */
#define SIGHUP 1 /* hangup */
#define SIGINT 2 /* interrupt, amiga: ctrl-c */
#define SIGQUIT 3 /* quit, amiga: ctrl-d */
#define SIGILL 4 /* illegal instruction */
#define SIGTRAP 5 /* trace trap */
#define SIGIOT 6 /* abort, amiga: abort() called */
#define SIGEMT 7 /* emulator trap */
#define SIGFPE 8 /* arithmetic exception, amiga: arith op */
#define SIGKILL 9 /* kill */
#define SIGBUS 10 /* bus error */
#define SIGSEGV 11 /* segmentation violation */
#define SIGSYS 12 /* bad argument to system call */
#define SIGPIPE 13 /* write on pipe or socket with no reader,
amiga: generated for 'pipe's or 'sktpair's */
#define SIGALRM 14 /* alarm clock, amiga: see alarm */
#define SIGTERM 15 /* software termination */
#define SIGURG 16 /* urgent condition on socket */
/* SIGSTOP, SIGTSTP, SIGCONT, SIGTTIN, SIGTTOU undefined to avoid creating the
belief that we support stopped processes */
#define SIGCHLD 20 /* child status has changed */
#define SIGIO 23 /* I/O possible on a descriptor */
/* Less usual signals: SIGXCPU, SIGXFSZ, SIGVTALARM, SIGPROF, SIGLOST not defined */
#define SIGWINCH 28 /* window changed */
#define SIGUSR1 30 /* user-defined signal 1 */
#define SIGUSR2 31 /* user-defined signal 2 */
#define SIG_IGN (void *)0
#define SIG_DFL (void *)1
struct sigvec {
void (*sv_handler)();
long sv_mask;
/*int sv_flags;*/ /* Not implemented */
};
void (*signal(int sig,void (*fn)(int)))(int);
int sigvec(int sig, struct sigvec *vec, struct sigvec *ovec);
long sigsetmask(long mask);
long sigblock(long mask);
#define sigmask(s) (1 << (s))
/* Only kill(getpid(), sig) works */
/* Also, getpid() is a unique number for this process */
int getpid(void);
int kill(int pid, int sig);
#endif